import base from "./base"; // 导入接口域名列表
import axios from "../http"; // 导入http中创建的axios实例
import qs from "qs"; // 根据需求是否导入qs模块

const getRider = {
  getRiderList(params) {
    return axios.post(`${base.bd}/admin/rider/lists`, qs.stringify(params));
  },
  addRider(params) {
    return axios.post(`${base.bd}/admin/rider/saveadd`, qs.stringify(params));
  },
  saveRider(params) {
    return axios.post(`${base.bd}/admin/rider/saveedit`, qs.stringify(params));
  },
  delRider(params) {
    return axios.post(`${base.bd}/admin/rider/del`, qs.stringify(params));
  },

  //门店设置配送区域
  setStoreDeliveryArea(params) {
    return axios.post(`${base.bd}/admin/extract/map`, qs.stringify(params));
  },
  selectOrderRider(params) {
    return axios.post(`${base.bd}/admin/order/receive`, qs.stringify(params));
  },
};
export default getRider;
